-- GENERATED SPELL FOR [Cauldron Lord Bilemaw] --


function spell0_11075(pUnit, Event) --@Infected Wound,n/a--
pUnit:FullCastSpellOnTarget(3427,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11075', 30325, 1)
end

function spell1_11075(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13445,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11075', 15000, 1)
end

function spell2_11075(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_11075', 647, 1)
end

function Sorts_11075(pUnit, Event)
local choix_sorts_11075 = math.random(0, 2)
if choix_sorts_11075 == 0 then
pUnit:RegisterEvent('spell0_11075', 1, 1)
end
if choix_sorts_11075 == 1 then
pUnit:RegisterEvent('spell1_11075', 1, 1)
end
if choix_sorts_11075 == 2 then
pUnit:RegisterEvent('spell2_11075', 1, 1)
end
end

function mob11075_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11075', math.random(1500, 3000), 1)
end

function mob11075_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11075_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11075_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11075, 1, 'mob11075_Action')
RegisterUnitEvent(11075, 2, 'mob11075_Leave')
RegisterUnitEvent(11075, 3, 'mob11075_Kill')
RegisterUnitEvent(11075, 4, 'mob11075_Die')
